package com.xn.app.muying.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.xn.app.muying.R;
import com.xn.app.muying.util.BaseActivity;

/**
 * 通知消息页面
 * Created by gaoge on 2017/9/19.
 */

public class MessageActivity extends BaseActivity {

    //标题
    private TextView title = null;
    //返回键
    private ImageView img_back = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //加载布局
        setContentView(R.layout.message_activity);
        //初始化组件
        init();
    }

    /**
     * 初始化组件
     */
    private void init() {
        //初始化组件
        title = (TextView) findViewById(R.id.title_name);
        img_back = (ImageView) findViewById(R.id.img_back);
        //设置标题
        title.setText("消息提醒");
        //设置返回键事件
        img_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
